package com.cxl.ext;

public class mbsj {
    public static void main(String[] args) {
        text ww = new text();
        ww.cal();
        texta a1 = new texta();
        a1.cal();

    }
}
abstract class tmp{
    abstract void job();
    public void cal(){
        long star=System.currentTimeMillis();
        job();
        long end=System.currentTimeMillis();
        System.out.println(end-star);
    }
}
class text extends tmp{
    @Override
    void job() {
        for (long i = 0; i < 1000000000; i++) {
            i++;
        }
    }
}
class texta extends tmp{
    @Override
    void job() {
        for (long i = 0; i < 900000000; i++) {
            i++;
        }
    }
}